import hashlib


def encode_text(text, salt="b943caa0cb7299a32a0c0bdacf6d1b98"):
    text = text.encode("utf-8").hex()
    i = j = f = 0
    merge = []
    while i < len(text) or j < len(salt):
        if i < len(text) and f == 0 or j == len(salt):
            merge.append(text[i : i + 2 :])
            i += 2
        else:
            merge.append(salt[j : j + 2 :])
            j += 2
        f ^= 1
    sha256 = hashlib.sha256()
    sha256.update("".join(merge).encode("utf-8"))
    return sha256.hexdigest()


print(
    ans := encode_text("汪汪特工队"),
    ans == "5f3f5ce018350d566ca322b33714603cbb933bc4f6e8431890a024c8d8c03db5",
)
print(
    ans := encode_text("210248951234875614"),
    ans == "b7ef187961f37599c4fbdf8121e9028f148c7f5cad0061b4db2a81d0e0a18593",
)



